package edu.uow.devdocs
/**
 * The StatusType entity.
 *
 * @author    
 *
 *
 */
class StatusType {
    static mapping = {
         table 'STATUS_TYPE'
         // version is set to false, because this isn't available by default for legacy databases
         version false
         id column:'STATUS_TYPE_ID'
		 id generator: 'sequence', params:[sequence:'STATUS_TYPE_SEQ']
		 sort statusType:'ASC'
		 cache usage: 'read-only'
    }
    String statusType
    Date lastUpdated

    static constraints = {
        statusType(size: 0..50)
        lastUpdated(nullable: true)
    }
    String toString() {
        return "${statusType}" 
    }
}
